<?php $this->placeholder('big-section-class')->set('main_section grid_12')?>
<?php $this->headScript()->appendFile('http://static.ak.fbcdn.net/connect.php/js/FB.Share')?>
<?php echo $this->partial('index/my-account-side.phtml', array('select' => 'home')) ?>
<section class="success grid_9">
    <?php if(!empty($this->login_process)):?>
        <h1><?php echo $this->t('Your Ad is posted online!')?></h1>
    <?php else:?>
        <h1><?php echo $this->t('Welcome to AsiaClassified. Your Ad is posted online!')?></h1>
    <?php endif;?>
    <section class="posted_ad">
        <ul>
            <?php foreach($this->ads_activated as $ad):?>
                <li>
                <figure>
                    <a href="<?php echo $ad->url()?>">
                        <img src="<?php echo $this->thumbnail()->resizeAndCrop($ad->featured_photo, 100, 100);?>">
                    </a>
                </figure>
                <h1>
                    <a href="<?php echo $ad->url()?>"><?php echo $ad->title?></a></h1>
              
                    <?php echo $this->price($ad);?>
             
                <?php if (!empty($ad->area_l2)):?>
                    <dl class="location">
                        <dt><?php echo $this->t('Location:')?></dt>
                        <dd><?php echo $ad->area_l2?></dd>
                    </dl>
                    <?php 
                        if ($ad->at == 1) {
                            $url = $ad->url().'&lng=tc'; 
                        } else {
                            $url = $ad->url().'&lng=en';
                        }
                    ?>
                <?php endif;?>
                <dl class="action">
                    <dt><?php echo $this->t('Ask a friend for their opinion:')?></dt>
                    <dd>
                        <em><a name="fb_share" type="icon_link" share_url="<?php echo $ad->url(true)?>"></a></em>
                    </dd>
                    <dd><a href="/listing/edit?id=<?php echo $ad->_id;?>&mode=1"><?php echo $this->t('Edit')?></a></dd>
					<dd><a href="<?php echo $url; ?>"><?php echo $this->t('View Your Translated Ad')?></a></dd>
                </dl>
                </li>
            <?php endforeach;?>
        </ul>
    </section>
	
	<section class="action">
        <ol>
			<li class="post_ad">
				<h3><?php echo $this->t('Post Ads Free')?></h3>
				<p><?php echo $this->t('Post your Ad in 20 popular categories in less than a minute and reach thousands of people.')?></p>
				<p class="button em"><a href="/listing/post-an-ad"><?php echo $this->t('Post your Ad now!')?></a></p>
			</li>
			<li class="bulk_listing">
				<h3><?php echo $this->t('Bulk Listing Service')?></h3>
				<p><?php echo $this->t('There\'s no need to post 100s of Ads one by one. Post them all at once with our bulk listing service. It’s fast, easy &amp; free!')?></p>
				<p class="button em"><a href="<?php echo $this->geturl('bulk-listing','default', null, 'default1')?>"><?php echo $this->t('Learn More')?></a></p>
			</li>
        </ol>
	</section>
<!-- incuTrack tracking code start -->
<script type="text/javascript">
var incutrack_data = new Array();
incutrack_data['A']=442;
incutrack_data['oid']= "<?php echo time()+rand(0,1000);?>"
incutrack_data['idsc1'] = "posted_ad";
incutrack_data['iamt1'] = "1";
incutrack_data['ict1'] = "posted_ad";
incutrack_data['iqty1'] = "1";
incutrack_data['ototal'] = "1";
</script>
<script type="text/javascript" src="https://p.mdmngr.com/conversion.js"></script>
<!-- incuTrack tracking code end -->
</section>
